package
{
	import net.flashpunk.Entity;

	import net.flashpunk.graphics.Image;
	import net.flashpunk.FP;
	

	public class Bullet extends Entity
	{
		[Embed(source = 'assets/bullet.png')] private const BULLET:Class;
		public function Bullet(x:int, y:int)
		{
			this.x = x;
			this.y = y;
			graphic = new Image(BULLET);
			setHitbox(10, 10);
			type = "bullet";
			
		}
		public function destroy():void {
			// Here we could place specific destroy-behavior for the Bullet.
			FP.world.remove(this);
		}
		override public function update():void {
			x += 5;
		}
	}
}
